﻿from web.models import *
from django.contrib import admin



class BookAdmin(admin.ModelAdmin):
    list_display = ("bookname","author","market_price", "in_price")
    ordering = ["-bookname"]
    list_filter = ('booktype', 'topic')
    search_fields = ("bookname", "ISBN",'author')

admin.site.register(Book,BookAdmin)
admin.site.register(Order)
admin.site.register(Address)
admin.site.register(TopicType)
admin.site.register(BookType)